package com.yizhuoyan.his.dao;

import com.yizhuoyan.his.ao.CaseCheckProjectAo;
import com.yizhuoyan.his.entity.CaseCheckProjectEntity;
import com.yizhuoyan.his.entity.CaseCheckRecordEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import com.yizhuoyan.his.entity.CaseCheckRecordEntity;
/**
 * (CaseCheckRecord)表数据库访问层
 *
 * @author yizhuoyan@yizhuoyan.com
 * @since 2020-02-19 15:02:01
 */
@Mapper
public interface CaseCheckRecordDao extends TemplateDao<Long, CaseCheckRecordEntity> {
    //额外方法
    List<CaseCheckProjectEntity> selectCase(Long caseMedicalId)throws  Exception;
    void updateState(Long caseMedicalId)throws  Exception;
    long selectByExpenseItemId(@Param("medicalRecordId") Long caseMedicalId, @Param("nodrugExpenseItemId") Long nondrugExpenseItemId);
    long selectRegistrationId(@Param("medicalRecordId") Long caseMedicalId, @Param("registrationRecordId") Long caseRegistrationId);






}